$(function () {
    $('.dropdown').mouseover(function () {
        $(this).children('ul').show();
    });

    $('.dropdown').mouseout(function () {
        $(this).children('ul').hide();
    });


    $('.dropdown>.m-l-30>li>a').mouseenter(function () {
        color = $(this).css('color');
        $(this).css('color', 'orange');
    });

    $('.dropdown>.m-l-30>li>a').mouseleave(function () {
        $(this).css('color', color);
    });

    $(window).bind("load", function () {
        var footerHeight = 0, footerTop = 0, $footer = $(".footer");
        positionFooter();
        function positionFooter() {
            footerHeight = $footer.height();
            footerTop = ($(window).scrollTop() + $(window).height() - footerHeight) + "px";
            if (($(document.body).height() + footerHeight) < $(window).height()) {
                $footer.css({position: "absolute"}).stop().animate({top: footerTop});
            } else {
                $footer.css({position: "static"});
            }
        }

        $(window).scroll(positionFooter).resize(positionFooter);
    });

    // $('.dropdown')
});
